<template>
  <header id="header">
    <router-link v-show="title != '云管家'" class="left" tag="h2" to="./">返回</router-link>
    
    <h1 class="old">{{title}}</h1>
    
  </header>
</template>

<script>
export default {
  name: "Header",
  props:{
    title:{
      type:String,
      default:'云管家'
    }
  }
};
</script>

<style scoped>
#leg{
  height:50px;
}
#header {
  width: 100%;
  height: 50px;
  background: #00ade1;
  clear: both;
}
.old {
  text-align: center;
  line-height: 50px;
  font-size: 16px;
  margin: 0;
  color: white;
}
.leg{
  text-align: center;
  line-height: 50px;
  font-size: 16px;
  color: white;
}
.left{
  float: left;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  margin-left:15px; 
  margin-right: -55px;
  color: white;
}
</style>